<?php

	/**
	 * List of available shortcodes
	 */
	function cv_shortcodes( $shortcode = false ) {
		$shortcodes = array(
			
			# button
			'button' => array(
				'name' => 'Button',
				'type' => 'single',
				'atts' => array(
					'color' => array(
						'values' => array(
							'blue',							
							'gray', 
							'black', 
							'red', 
							'green', 
							'white', 
							'yellow', 
							'brown', 
							'pink', 
							'purple', 
							'orange'
						),
						'default' => 'blue',
						'desc' => __( 'Button color', hybrid_get_textdomain() )
					),
					'url' => array(
						'values' => array( ),
						'default' => '#',
						'desc' => __( 'Button url', hybrid_get_textdomain() )
					),
					'value' => array(
						'values' => array( ),
						'default' => 'button',
						'desc' => __( 'Button text', hybrid_get_textdomain() )						
					)
					
				),
				'usage' => '[button value="Submit" url="http://button-link-to.com" color="red"] ',				
				'desc' => __( 'Styled button', hybrid_get_textdomain() )
			),
			
			# Contact
			'contact' => array(
				'name' => 'Contact',
				'type' => 'single',
				'atts' => array(
					'mailto' => array(
						'values' => false,
						'default' => 'yourname@yourmail.com',
						'desc' => __( 'Email to', hybrid_get_textdomain() )
					),					
					'namelabel' => array(
						'values' => false,
						'default' => 'You Name',
						'desc' => __( 'Name label', hybrid_get_textdomain() )
					),
					'emaillabel' => array(
						'values' => false,
						'default' => 'Email',
						'desc' => __( 'Email label', hybrid_get_textdomain() )
					),
					'subjectlabel' => array(
						'values' => false,
						'default' => 'Subject',
						'desc' => __( 'Subject label', hybrid_get_textdomain() )
					),
					'contentlabel' => array(
						'values' => false,
						'default' => 'Please type here',
						'desc' => __( 'Content label', hybrid_get_textdomain() )
					)				
				),
				'usage' => '[contact mailto="yourname@yourmail.com" namelabel="You Name" emaillabel="Email" subjectlabel="Subject" contentlabel="Please type here"]',
				'desc' => __( 'Contact form', hybrid_get_textdomain() )
			),
			
			# column
			'column' => array(
				'name' => 'Column',
				'type' => 'wrap',
				'atts' => array(
					'size' => array(
						'values' => array(
							'1-2',
							'1-3',
							'1-4',
							'1-5',
							'1-6',
							'2-3',
							'2-5',
							'3-4',
							'3-5',
							'4-5',
							'5-6'
						),
						'default' => '1-2',
						'desc' => __( 'Column width', hybrid_get_textdomain() )
					),
					'last' => array(
						'values' => array(
							'false',
							'true'
						),
						'default' => '0',
						'desc' => __( 'Last column', hybrid_get_textdomain() )
					)
					
				),
				'usage' => '[column size="1-2"] Content [/column]<br/>[column size="1-2" last="true"] Content [/column]',
				'content' => __( 'Column content', hybrid_get_textdomain() ),
				'desc' => __( 'Flexible columns', hybrid_get_textdomain() )
			),
			
			# gmap
			'gmap' => array(
				'name' => 'Gmap',
				'type' => 'single',
				'atts' => array(
					'width' => array(
						'values' => false,
						'default' => '600',
						'desc' => __( 'Width', hybrid_get_textdomain() )
					),
					'height' => array(
						'values' => false,
						'default' => '400',
						'desc' => __( 'Height', hybrid_get_textdomain() )
					),
					'address' => array(
						'values' => false,
						'default' => '',
						'desc' => __( 'Marker address', hybrid_get_textdomain() )
					),
				),
				'usage' => '[gmap width="600" height="400" address="Singapore, Marina bay"]',
				'desc' => __( 'Maps by Google', hybrid_get_textdomain() )
			),
			
			# list
			'list' => array(
				'name' => 'List',
				'type' => 'wrap',
				'atts' => array(
					'style' => array(
						'values' => array(
							'star',
							'arrow',
							'check',
							'cross',
							'thumbs',
							'link',
							'gear',
							'time',
							'note',
							'plus',
							'guard',
							'event',
							'idea',
							'settings',
							'twitter'
						),
						'default' => 'star',
						'desc' => __( 'List style', hybrid_get_textdomain() )
					)
				),
				'usage' => '[list style="check"] <ul> <li> List item </li> </ul> [/list]',
				'content' => '<ul><li>' . __( 'List item ', hybrid_get_textdomain() ) . '</li></ul>',
				'desc' => __( 'Styled unordered list', hybrid_get_textdomain() )
			),
			
			# quote
			'quote' => array(
				'name' => 'Quote',
				'type' => 'wrap',
				'atts' => array(
					'name' => array(
						'values' => array(),
						'default' => 'colorvila',
						'desc' => __( 'Name', hybrid_get_textdomain() )
					),
					'sitename' => array(
						'values' => array(),
						'default' => 'ColorVila',
						'desc' => __( "Site's name", hybrid_get_textdomain() )
					),
					'siteurl' => array(
						'values' => array(),
						'default' => 'http://www.colorvila.com',
						'desc' => __( "Site's url", hybrid_get_textdomain() )
					),
					'avatar' => array(
						'values' => array(),
						'default' => '',
						'desc' => __( "Avatar", hybrid_get_textdomain() )
					)
				),
				'usage' => '[button value="Submit" url="http://button-link-to.com" color="red"]',
				'content' => __( 'Quote content', hybrid_get_textdomain() ),
				'desc' => __( 'Blockquote alternative', hybrid_get_textdomain() )
			),			
			
			# spacer
			'spacer' => array(
				'name' => 'Spacer',
				'type' => 'single',
				'atts' => array(
					'size' => array(
						'values' => array(
							'0',
							'5',
							'10',
							'20',
							'40'
						),
						'default' => '20',
						'desc' => __( 'Spacer height in pixels', hybrid_get_textdomain() )
					)
				),
				'usage' => '[spacer size="20"]',
				'desc' => __( 'Empty space with adjustable height', hybrid_get_textdomain() )
			),
			
			# tabs
			'tabs' => array(
				'name' => 'Tabs',
				'type' => 'wrap',
				'atts' => array(
					'style' => array(
						'values' => array(
							'horizontal',
							'vertical'
						),
						'default' => 'horizontal',
						'desc' => __( 'Tabs style',  hybrid_get_textdomain() )
					)
				),
				'usage' => '[tabs style="horizontal"] [tab title="Tab name"] Tab content [/tab] [/tabs]',			
				'desc' => __( 'Tabs container', hybrid_get_textdomain() )
			),
			
			# tab
			'tab' => array(
				'name' => 'Tab',
				'type' => 'wrap',
				'atts' => array(
					'title' => array(
						'values' => array( ),
						'default' => __( 'Title', hybrid_get_textdomain() ),
						'desc' => __( 'Tab title', hybrid_get_textdomain() )
					)
				),
				'usage' => '[tabs style="horizontal"] [tab title="Tab name"] Tab content [/tab] [/tabs]',
				'content' => __( 'Tab content', hybrid_get_textdomain() ),
				'desc' => __( 'Single tab', hybrid_get_textdomain() )
			),			
			
			# toggle
			'toggle' => array(
				'name' => 'Toggle',
				'type' => 'wrap',
				'atts' => array(
					'title' => array(
						'values' => array( ),
						'default' => __( 'Toggle title', hybrid_get_textdomain() ),
						'desc' => __( 'Toggle title', hybrid_get_textdomain() )
					),
					'color' => array(
						'values' => array('white', 'gray'),
						'default' => 'white',
						'desc' => __( "Color", hybrid_get_textdomain() )
					),
				),
				'usage' => '[toggle title="Your Toggle Title" color="white"]Toggle Content[/toggle]',
				'content' => __( 'Hidden content', hybrid_get_textdomain() ),
				'desc' => __( 'Hidden text', hybrid_get_textdomain() )
			)
		);
			
		if ( $shortcode )
			return $shortcodes[$shortcode];
		else
			return $shortcodes;
	}

?>